package org.barman.dao;

import java.util.List;

import org.barman.exception.PersistenceException;
import org.barman.exception.ValidationException;

public interface DAO<T> {
	void insert(T object) throws PersistenceException, ValidationException;

	void update(T object) throws PersistenceException, ValidationException;

	T get(int id) throws PersistenceException, ValidationException;

	List<T> getAll() throws PersistenceException, ValidationException;

	void delete(int id) throws PersistenceException, ValidationException;
}
